<?
class Carga_model extends CI_Model{
    
    function getCargasByUser($user){
        $this->db->where('id_usuario',$user);
        $query = $this->db->get('carregamento');
        
        if($query->num_rows() > 0){
            return $query->result();
        }
    }
}
